/**
 * 
 */
package cc.w3d.gwitjeds.realtimechangetextbox.client;

import com.google.gwt.event.shared.GwtEvent;

public class RealTimeChangeEvent extends GwtEvent<RealTimeChangeHandler>
{
	private static final Type<RealTimeChangeHandler> TYPE = new Type<RealTimeChangeHandler>();

	private final String newValue;

	public RealTimeChangeEvent(String newValue)
		{this.newValue = newValue;}

	public static Type<RealTimeChangeHandler> getType()
		{return TYPE;}

	public String getNewValue()
		{return newValue;}

	@Override
	protected void dispatch(RealTimeChangeHandler handler)
		{handler.onRealTimeChange(this);}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RealTimeChangeHandler> getAssociatedType()
		{return TYPE;}
}